#    Shotscreens
#    Copyright (C) 2009, Kirill Yakovenko (http://crystalnix.com)

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
import py2exe
import os

origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
        if os.path.basename(pathname).lower() in ("msvcp71.dll", "gdiplus.dll"):
                return 0
        return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL

py2exe_options = dict(#ascii=True,  # Exclude encodings
                      excludes=['email'],
                      bundle_files=1,
                      compressed=2,
                      optimize=2,
                      )

setup(name='Shotscreen',
      version='1.0',
      author='Yakovenko K.S.',
      author_email="kirill.yakovenko@gmail.com",
      zipfile=None,
      windows=[{'script': 'Shotscreens.py',
                'icon_resources': [ (0,'images/black.ico'),
                                    (50,'images/enable.ico'),
                                    (60,'images/disable.ico'),
                                    (70,'images/loading.ico')]
                }],
      options={'py2exe': py2exe_options},)
